package com.rzjm.api.service.impl;

import com.rzjm.api.dao.ChargerOrderMapper;
import com.rzjm.api.entity.ChargerOrder;
import com.rzjm.api.service.ChargerOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 订单Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-07
 */
@Service
public class ChargerOrderServiceImpl extends BaseServiceImpl<ChargerOrderMapper, ChargerOrder> implements ChargerOrderService {

    @Resource
    private ChargerOrderMapper chargerOrderMapper;

    @Override
    public ChargerOrder getOrderByOrderNo(String orderNo) {
        return chargerOrderMapper.selectOneByColumn("order_no",orderNo);
    }

    @Override
    public int handleOp(int order_id, int user_id, int state) {
        return 0;
    }
}
